﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}

<link href="~/lib/layui/css/layui.css" rel="stylesheet" />
<script src="~/lib/layui/layui.js"></script>
<script src="~/js/js.cookie.js"></script>
<script src="~/js/moment.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>




<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Mes系统</title>
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">Mes系统</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->


            <dl class="layui-nav-child">
                <dd><a href="/Client/Login">重新登录</a></dd>
                <dd><a href="" onclick="window.close()">退出</a></dd>
            </dl>

            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layui-hide-xs"><a href="/Index/Logins">登录</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="" onclick="window.close()">退出</a></li>

            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;">
                        <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                        当前用户：<span> </span>
                    </a>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="/">登录</a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="#" onclick="setIFrame(1)">
                            <i class="layui-icon layui-icon-set"
                               style="font-size: 20px; color: white"></i> 系统配置
                        </a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="#" onclick="setIFrame(3)">
                            <i class="layui-icon layui-icon-templeate-1"
                               style="font-size: 20px; color: white"></i> 主数据
                        </a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="#" onclick="setIFrame(9)">
                            <i class="layui-icon layui-icon-read"
                               style="font-size: 20px; color: white"></i> 制造管理
                        </a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="#" onclick="setIFrame(10)">
                            <i class="layui-icon layui-icon-form"
                               style="font-size: 20px; color: white"></i> 订单与合同
                        </a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="#" onclick="setIFrame(11)">
                            <i class="layui-icon layui-icon-cart"
                               style="font-size: 20px; color: white"></i> 库房管理
                        </a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="">个人设置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(2)">个人信息</a></dd>
                        </dl>

                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">

            <iframe src="" id="iframeShow" width="100%" height="100%" frameborder="no" border="0"></iframe>



        </div>
    </div>
    <script>


        function setIFrame(flag) {

            switch (flag) {
                case 0: //新用户注册
                    $("#iframeShow").attr("src", "/Login/LoginView");
                    break;
                case 1: //系统设置
                    $("#iframeShow").attr("src", "/Index/System");
                    break;
                case 2: //个人信息
                    $("#iframeShow").attr("src", "/Users/User");
                    break;
                case 3: //主数据
                    $("#iframeShow").attr("src", "/Index/Masterdata");
                    break;
                case 9: //制造管理
                    $("#iframeShow").attr("src", "/Index/Fabricate");
                    break;
                case 10: //订单与合同
                    $("#iframeShow").attr("src", "/Index/Contract");
                    break;
                case 11: //库房管理
                    $("#iframeShow").attr("src", "/Index/Storeroom");
                    break;
            }
        }


        //JS
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element
                , layer = layui.layer
                , util = layui.util
                , $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                //左侧菜单事件
                menuLeft: function (othis) {
                    layer.msg('展开左侧菜单的操作', { icon: 0 });
                }
                , menuRight: function () {
                    layer.open({
                        type: 1
                        , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                        , area: ['260px', '100%']
                        , offset: 'rt' //右上角
                        , anim: 5
                        , shadeClose: true
                    });
                }
            });

        });
    </script>
</body>
</html>